﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BUGCOME.Model.Common.dto
{
    public class DictTypeQueryDto : PagerInfo
    {
        public string? DictType { get; set; }

        public string? DictName { get; set; }

        public string? Status { get; set; }

        public string? Type { get; set; }

        /// <summary>
        /// 创建日期开始（包含）
        /// </summary>
        public DateTime? CreateTimeStart { get; set; }

        /// <summary>
        /// 创建日期结束（包含）
        /// </summary>
        public DateTime? CreateTimeEnd { get; set; }
    }
    public class DictTypeDto
    {
        public long Id { get; set; }
        /// <summary>
        /// 字典名称
        /// </summary>
        public string DictName { get; set; }
        /// <summary>
        /// 字典类型
        /// </summary>
        [Required(ErrorMessage = "字典类型不能为空")]
        [RegularExpression(pattern: "^[a-z][a-z0-9_]*$", ErrorMessage = "字典类型必须以字母开头,且字典类型只能由小写字母或加下划线还有数字组成")]
        public string DType { get; set; }
        public string Status { get; set; }
        /// <summary>
        /// 系统内置 Y是 N否
        /// </summary>
        public string Type { get; set; }
        /// <summary>
        /// 自定义sql
        /// </summary>
        public string? CustomSql { get; set; }

       

        /// <summary>
        /// 创建者（用户标识）
        /// </summary>
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 最后更新者（用户标识）
        /// </summary>
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 最后更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>

        public string? Remark { get; set; } = "";
    }
}
